﻿<%@ Page Title="Interview Information" Language="C#" MasterPageFile="~/Interviewer/MasterPageInterviewer.master" AutoEventWireup="true" CodeFile="InterviewViewInterviewInfor.aspx.cs" Inherits="Interviewer_InterviewViewInterviewInfor" %>

<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <script src="../Scripts/jquery.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            $('#<%=ddlTypeSearch.ClientID %>').change(function () {
                ShowHide();
            });
            ShowHide();

            function ShowHide() {
                if ($('#<%=ddlTypeSearch.ClientID %>').val() == "Date Interview") {
                    $('#<%=txtDateSearch.ClientID %>').show();
                    $('#<%=txtTextSearch.ClientID %>').hide();
                    $('#<%=ddlStatus.ClientID %>').hide();
                }
                else if ($('#<%=ddlTypeSearch.ClientID %>').val() == "Status") {
                    $('#<%=txtTextSearch.ClientID %>').hide();
                    $('#<%=txtDateSearch.ClientID %>').hide();
                    $('#<%=ddlStatus.ClientID %>').show();
                }
                else {
                    $('#<%=txtTextSearch.ClientID %>').show();
                    $('#<%=txtDateSearch.ClientID %>').hide();
                    $('#<%=ddlStatus.ClientID %>').hide();
                }
            };
        });
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentmain" Runat="Server">
    <div id="MainApplyVacancy">
        <h2>
            <asp:Label ID="lblTitleIntervew" runat="server" 
                Text="Intervew Information Management"></asp:Label>
        </h2>
        <div id="Search">
            
            <asp:DropDownList ID="ddlTypeSearch" runat="server" CssClass="ddlCss" 
                ToolTip="Choose search follow ID or Name Applicant">
                <asp:ListItem>VacancyID</asp:ListItem>
                <asp:ListItem>ApplicantID</asp:ListItem>
                <asp:ListItem>Applicant Name</asp:ListItem>
                <asp:ListItem>Date Interview</asp:ListItem>
                <asp:ListItem>Status</asp:ListItem>
            </asp:DropDownList>
            <asp:TextBox ID="txtTextSearch" runat="server" 
                ToolTip="Enter Name or ID of Applicant" Width="200px"></asp:TextBox>
            <asp:TextBox ID="txtDateSearch" runat="server" 
                ToolTip="Enter Name or ID of Applicant" Width="200px"></asp:TextBox>
            <asp:CalendarExtender ID="txtDateSearch_CalendarExtender" runat="server" 
                TargetControlID="txtDateSearch">
            </asp:CalendarExtender>
            <asp:DropDownList ID="ddlStatus" runat="server">
                <asp:ListItem>Please Choose Status</asp:ListItem>
                <asp:ListItem Value="1">Accept</asp:ListItem>
                <asp:ListItem Value="2">Waiting</asp:ListItem>
                <asp:ListItem Value="3">Not Accept</asp:ListItem>
            </asp:DropDownList>
            <asp:Button ID="btnSearch" runat="server" CssClass="btnSearch" Text="Search" onclick="btnSearch_Click" />
            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
            </asp:ToolkitScriptManager>
        </div>
        <asp:GridView ID="GVInterviewInfor" runat="server" AutoGenerateColumns="False" 
            Width="700px" BackColor="White" BorderColor="#3366CC" BorderStyle="None" 
            BorderWidth="1px" CellPadding="3" PageSize="20" ShowHeaderWhenEmpty="True" 
            AllowPaging="True" 
            Font-Size="12px" onpageindexchanging="GVInterviewInfor_PageIndexChanging">
            <Columns>
                <asp:TemplateField HeaderText="ID">
                    <ItemTemplate>
                        <asp:Label ID="lblID" runat="server" Text='<%# Eval("InterviewID") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Interviewer Name">
                    <ItemTemplate>
                        <asp:Label ID="lblInterviewerName" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="VacancyID">
                    <ItemTemplate>
                        <asp:Label ID="lblVacancyID" runat="server" Text='<%# Eval("VacancyID") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Applicant Name">
                    <ItemTemplate>
                        <asp:Label ID="lblApplicantName" runat="server"></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Date">
                    <ItemTemplate>
                        <asp:Label ID="lblDate" runat="server" Text='<%# Eval("DateInterview") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Time">
                    <ItemTemplate>
                        <asp:Label ID="lblTime" runat="server" Text='<%# Eval("TimeDetails") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:TemplateField HeaderText="Status">
                    <ItemTemplate>
                        <asp:Label ID="lblStatus" runat="server" Text='<%# Eval("Status") %>'></asp:Label>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
            <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
            <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" 
                Font-Size="15px" />
            <PagerStyle BackColor="#C1C1FF" HorizontalAlign="Center" 
                Wrap="True" BorderColor="#000066" Font-Bold="True" Font-Names="Calibri" 
                Font-Size="14px" Font-Underline="True" VerticalAlign="Middle" />
            <RowStyle BackColor="White" ForeColor="#003399" />
            <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
            <SortedAscendingCellStyle BackColor="#EDF6F6" />
            <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
            <SortedDescendingCellStyle BackColor="#D6DFDF" />
            <SortedDescendingHeaderStyle BackColor="#002876" />
        </asp:GridView>
    </div>
</asp:Content>

